// @import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap";

$footer-height: 24px;
$color-black: rgb(60, 60, 60);
$color-white: rgb(255,255,255);
$color-header-color: rgb(37, 37, 37);
$color-primary: #004d97;

$input-text-label-color: rgba($color-black, 0.8);
$input-text-highlight-color: $color-primary;

a {
  text-decoration: none;
}
#ajax-content {
  margin-bottom: $footer-height * 2 + 10px;
  height: calc(100vh - 55px);
  > div {
    min-height: 100%;
  }
  > div#p2 {
    min-height: auto;
    position: absolute;
    bottom: 50%;
  }
}

.coupon-bg-31 {
  background: url(../images/coupon_bg_1.jpg) no-repeat top center;
}
.coupons-bg-28{
  background:#D2BBE9;
}
.coupons-bg-33{
  background:#949695;
}
.coupons-bg-32{
  background:#FB9274;
  
}

.coupon-bg-41 {
  background: url(../images/coupon_bg_2.jpg) no-repeat top center;
}

#app-layout {
  margin: 0;
  min-height: 100vh;
}

.certified.mdl-badge:after {
  background-color: #689f38;
}

dialog {
  position: fixed;
  top: 50%;
  transform: translate(0, -50%);
}

.hidden {
  display: none;
}

header.top-bar {
  top: 44px;
  position: absolute;
  width: 100%;
  z-index: 2;
  .mdl-list__item.mdl-list__item--two-line{
    height: 115px;
  }
}


header.top-bar-edit-profile {
  width: 100%;
  .mdl-list__item.mdl-list__item--two-line{
    height: 120px;
    box-shadow: 0 2px 4px 2px rgba($color-black, 0.18);
    margin-top: -55px;
  }
  .mdl-list__item-secondary-action .points  {
    color: black;
    font-size: 12px;
    font-weight: 600;
    margin-left: 0px;
  }

  .mdl-list__item-primary-content {
    height: 86px;
    line-height: 1;
    .wechat-avatar {
      height: 70px;
      width: 70px;
      background-repeat: no-repeat;
      background-size: cover;
      display: inline-block;
      border-radius: 40px;
    }
  }
}

.reload {
  font-weight: 300;
}

i.tier {
  width: 68px;
  height: 68px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 600;
  span {
    width: 50%;
    text-align: center;
  }
  
  &.gold-member {
    background-color: gold;
    color: black;
  }
  &.black-member {
    background-color: black;
    color: white;
  }
  &.silver-member {
    background-color: silver;
    color: black;
  }
}

.coupon-terms, .coupon-confirm, .coupon-warning {
  width: 328px;
  padding: 0;
  font-size: 10px;
  .mdl-dialog__content {
    padding: 30px 17px 20px 17px;
    ol {
      margin: 0;
      padding: 10px;
      width: 100%;
    }
  }
  .mdl-dialog__actions {
    padding: 0 0 34px 0;
  }
  .mdl-typography--text-center{
     justify-content: center;
  }
  .mdl-points-less {
     font-size: 1.4rem;
     font-weight: bold;
     color:black;
  }
  .mdl-points-less-tip{
    font-size: 0.8rem;
    display: inline-block;
    padding: 5px 50px 40px 35px;
  }
  .mdl-dialog__actions:nth-of-type(1) {
    padding: 0;
    button {
      padding: 0px;
      height: 30px;
      min-height: 30px;
      min-width: 30px;
      width: 30px;
      background: url(../images/icons/close.png) no-repeat center center;
    }
  }
}

.mdl-dialog .profile-button{
    justify-content: center;
    padding-left: 8px;
}

.profile-confirm-save {
    .profile-button button{
        width:80%;
    }
    .mdl-dialog__actions .profile-title{
        margin-right: 80px;
    }
}

.coupon-confirm {
   width:375px;
  .mdl-dialog__content {
    font-size: 18px;
  }
}

.container.summary {
  background-color: rgb(244, 244, 244);  
  > .member-card {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 0 -50px;
    height: 339px;
    > .mdl-card__supporting-text {
      width: 100%;
      position: absolute;
      bottom: 0;
      > .wrapper {
        background-color: $color-white;
        width: 152px;
        height: 155px;
        margin: 0 auto;
        > h3 {
          padding: 9px 0 0 0;
          font-size: 9.36pt;
          margin: 0 0 9px 0;
        }
        > .barcode {
          margin: 0 20px 8px 20px;
        }
        > .responsive-img {
          width: 111px;
        }
      }
    }
  }
  > .summary {
    background-color: $color-white;
    margin: 20px;
    border: solid 8px rgb(239, 239, 239);
    h3:nth-of-type(1) {
      margin: 0;
    }
    b {
      font-size: 24px;
    }
  }
}
.invite {
  padding-top: 10px;
  text-align: center;
  > .invite_text {
    padding-top: 10px;
    margin: 10px;
    border-top: solid 4px rgb(254, 226, 140);
    h3:nth-of-type(1) {
      margin: 0;
    }
    b {
      font-size: 15px;
    }
  }
}

.coupon-available,.coupon-used,.coupon-expired {
  &.mdl-button {
    height: 53px;
    text-align: left;
    font-weight: 600;
    i {
      position: absolute;
      top: 16px;
      right: 22px;
    }
  }
}

.coupons-for-sale {
  width: auto;
  &.mdl-card {
    margin: 5px 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0;
    min-height: 174px;
    height: 174px;
  }
  &.mdl-card__actions {
    margin: 0 12px;
  }
  > div {
    margin-left: 30px;
    margin-top: 10px;
    &.mdl-typography--headline:nth-of-type(1) {
      margin-top: 20px;
    }
  }
}
.bottom-space{
  padding-bottom:100px;
}
.coupons-available, .coupons-used, .coupons-expired {
  .mdl-typography--headline{
    text-align: center;
    font-size: 45px;
    color:white;
    padding: 8px 0px;
  }
  .mdl-typography--headline img {
    width: 100%;
  }
  .mdl-typography--caption-color-contrast {
    line-height: 2;
  }
  .mdl-grid{
    margin: 0px 5px 5px 5px;
  }
}

.my-points {
  &.summary {
    background-color: $color-white;
    //margin-top: 63px;
    padding-bottom: 12px;
    .summary {
      margin: 12px 12px 0 12px;
      p {
        font-size: 12px;
      }
    }
  }
  &.history {
    background-color: rgb(244, 244, 244);
    padding: 12px 54px;
    margin: 0;
    box-shadow: 0 2px 4px -1px rgba(0,0,0,.2) inset;
    height: calc(100% - 40px);
    h2 {
      font-size: 15px;
      display: flex;
      span {
        margin-left: 14px;
      }
    }
    .mdl-list {
      .mdl-list__item {
        padding-left: 0;
      }
    }
  }
}

.mdl-tabs__tab-bar {
  height: $footer-height;
  border-bottom: none;
  .mdl-tabs__tab {
    font-weight: 500;
    padding: 0;
    height: $footer-height;
    line-height: 1.5;
    color: rgba(0, 0, 0, 1);
    &:nth-child(2), &:nth-child(3), &:nth-child(4) {
      border-left: 1px solid black;
    }
    &.is-active {
      background-color: rgba(0,0,0,0.2);
    }
  }
}

footer {
  background-color: white;
  padding-top: 10px;
  bottom: 0;
  position: fixed;
  z-index: 1;
  width: 100%;
  height: $footer-height * 2;
}

.full-width {
  width: 100%;
}

.hide {
  display: none;
}

.login, .register {
  .mdl-textfield {
    background-color: white;
    height: 54px;
    margin-bottom: 20px;
    .mdl-textfield__input {
      border: none;
      margin-left: 20px;
    }
    + .phone-number button {
      height: 54px;
      margin: 0;
    }
  }
}

.mdl-dialog__actions {
  .mdl-typography--text-center {
    flex: 1;
    font-size: 1.17em;
  }
}

.mdl-layout__header > div {
  margin: 17px auto 0 auto;
  text-align: center;
}

.mdl-layout__title {
  line-height: 3;
  font-size: 12px;
  align-self: flex-end;
}
.mdl-textfield__label {
  color: $input-text-label-color;
}
.mdl-radio__button {
  display: none;
}

.mdl-tabs__tab {
  flex: 1 100%;
}

.mdl-textfield.is-focused {
  & .mdl-textfield__icon {
    color: $input-text-highlight-color;
  }
}

.mdl-textfield__icon {
  width: 32px;
  text-align: center;
  position: absolute;
  line-height: 1.5;
  color: $input-text-label-color;
  
  & ~ * {
    margin-left: 36px;
    width: calc(100% - 36px);
  }
}

.phone-number {
  & > button {
    margin-top: 13px;
  }
}

.mdl-card__supporting-text.register, mdl-card__actions.register {
  padding: 32px;
}

.member-card-popup {
  width: 300px;
}

ul {
  list-style: none;
}

.profile-icon {
  background-repeat: no-repeat;
  background-position: center center;
  height: 45px;
  width: 45px;
  display: inline-block;
  &.address {
    background-image: url(../images/icons/address.png);
  }
  &.birthday {
    background-image: url(../images/icons/birthday.png);
  }
  &.education {
    background-image: url(../images/icons/education.png);
  }
  &.hobby {
    background-image: url(../images/icons/hobby.png);
  }
  &.job {
    background-image: url(../images/icons/job.png);
  }
  &.mail {
    background-image: url(../images/icons/mail.png);
  }
  &.tmall {
    background-image: url(../images/icons/tmall.png);
  }
  &.marriage {
    background-image: url(../images/icons/marriage.png);
  }
  &.money {
    background-image: url(../images/icons/money.png);
  }
  &.phonecall-2 {
    background-image: url(../images/icons/phonecall-2.png);
  }
  &.size {
    background-image: url(../images/icons/size.png);
  }
  &.size2 {
    background-image: url(../images/icons/size2.png);
  }
  &.gender1 {
    background-image: url(../images/icons/gender.png);
  }
}

.phone-email-valid {
  position: relative;
  i {
    position: absolute;
    top: 28%;
    left: 10%;
  }
}

.reload-icon {
  background-image: url(../images/icons/reload.png);
  height: 25px;
  width: 25px;
  background-repeat: no-repeat;
  background-position: center center;
  display: inline-block;
}


.profile-edit {
  background-color: rgb(244, 244, 244);
  .mdl-textfield {
    padding: 3px 0;
    width: 98%;
    .mdl-textfield__label {
      top: 4px;
      height: 45px;
      width: 45px;
    }
    &.caption {
      margin-left: 50px;
    }
    .mdl-textfield__input {
      margin-left: 50px;
      width: calc(100% - 60px);
      border: 1px solid rgb(221, 221, 221);
      background-color: white;
      height: 35px;
      padding-left: 10px;
    }
    &.birthday-field {
      display: flex;
      width: 98%;
      .mdl-textfield__date:nth-child(2), .mdl-textfield__date:nth-child(3) {
        margin-left: 8px;
      }
    }
    &.address-field {
      display: flex;
      flex-flow: row wrap;
      width: 98%;
      .mdl-textfield__input:nth-child(1) {
        flex: 0.5 1;
      }

      .mdl-textfield__input:nth-child(2) {
        margin-left: 0px;
        flex: 0.5 1;
      }

      .mdl-textfield__input:nth-child(3) {
        flex: 1 100%;
      }
    }
  }

  .mdl-cell--2-col-phone .mdl-textfield__input {
    width: 60%;
  }

  .mdl-cell--2-col-phone .change-phone .mdl-textfield__input {
    width: 65%;
  }
}


.gender{
  padding-left:20px;
}
.date{
  width:58px;
  display:inline-block;
}
.tmall{
  margin-top: 5px; 
}
.tmallname{
  margin-top: 5px;
  padding-right: 0px !important;
}
.birthday{
   padding-left:0;
  padding-top:3px;
}

#spinner {
  > .overlay {
    position: fixed;
    top: 0px;
    width: 100%;
    bottom: 0px;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.8);
  }
  > .mdl-spinner {
    position: absolute;
    top: 50%;
    z-index: 101;
    left: 50%;
  }
}
.top-bar {
  &.white-text {
    a, span.points {
      color: white;
    }

  }

 
  .mdl-list__item-primary-content {
    height: 86px;
    line-height: 1;
    .wechat-avatar {
      height: 70px;
      width: 70px;
      background-repeat: no-repeat;
      background-size: cover;
      display: inline-block;
      border-radius: 40px;
    }
    div.edit, i.material-icons {
      margin-left: 20px;
      a {
        color:white;
      }
    }
  }
  .mdl-list__item-secondary-action {
    line-height: 1;
    .points {
      color: black;
      font-size: 12px;
      font-weight: 600;
      margin-left: 0px;
    }
  }

}
.ymd{
  padding-left:40px;
}

.loading {
  background: url(../images/icons/Loading_icon.gif) no-repeat center center;
}

.register select.mdl-textfield__input {
  &.mdl-textfield__date {
    padding: 4px 0;
  }
}

/*xianghua*/
.confirmcoupon{
  color:black;
}
.phone-number { 
 	width: 40%; 
  float: left;
 }
.coupon-face-value{
  letter-spacing: -4px;
}
.ahtml{
   text-decoration:underline;
   color:black;
}
.myintegral{
  padding-left: 20px !important;
  padding-right: 0px !important; 
}

.outpoint{
  padding:20px 20px;
  background-color:#BCBCBC;
    .firsth3{
      width:21%
    }
    .h3{
      width:15%
    }
    .lasth3{
      width:28%
    }
    
} 

.point{
  background-color:white;
   
}
.inpoint{    
    padding: 10px 20px 20px 20px;
    font-weight: 700;
    h2,h3,p {
      margin: 0px;
      padding: 0px;
         }
    h2{
    font-size: 14px;
    text-align:center;
    margin-bottom: 15px;
   }
   h3,p{
   font-size:9.9px
  } 
   h3{
    margin-bottom: 15px;
    background-color: #BCBCBC;
   } 

  .newlook{
    margin-bottom: 0px;
  }   

} 

.section{
  margin-bottom: 15px;
}
.notsection{
  margin-top: 30px;
  margin-bottom: 15px;
}

.phone{
  margin-bottom: 10px;
}
.rule{
  margin-left:auto; 
  margin-right:auto;
  margin-bottom:10px; 
}
.footer{
    background-color: white;
    padding-top: 10px;
    bottom: 0;
    z-index: 1;
    width: 100%;
    height: 48px;
}



.profile-edit {
  background-color: rgb(244, 244, 244);
  .mdl-textfield {
    padding: 3px 0;
    width: 98%;
    .mdl-textfield__label {
      top: 4px;
      height: 45px;
      width: 45px;
    }
    &.caption {
      margin-left: 50px;
    }
    .mdl-textfield__input {
      margin-left: 50px;
      width: calc(100% - 60px);
      border: 1px solid rgb(221, 221, 221);
      background-color: white;
      height: 35px;
      padding-left: 10px;
    }
    &.birthday-field {
      display: flex;
      width: 98%;
      .mdl-textfield__date:nth-child(2), .mdl-textfield__date:nth-child(3) {
        margin-left: 8px;
      }
    }
    &.address-field {
      display: flex;
      flex-flow: row wrap;
      width: 98%;
      .mdl-textfield__input:nth-child(1) {
        flex: 0.5 1;
      }

      .mdl-textfield__input:nth-child(2) {
        margin-left: 0px;
        flex: 0.5 1;
      }

      .mdl-textfield__input:nth-child(3) {
        flex: 1 100%;
      }
    }
  }

  .mdl-cell--2-col-phone .mdl-textfield__input {
    width: 60%;
  }

  .mdl-cell--2-col-phone .change-phone .mdl-textfield__input {
    width: 65%;
  }
}

.mdl-dialog .mdl-textfield { 
 height: inherit; 
 padding: 20px 0; 
}
.mdl-dialog .mdl-textfield label  { 
 line-height: inherit; 
}
.avg-width {
  width:49%;
  margin:0 1px;
}

.third-width {
  width:32%;
  margin:0 1px;
}

.survey-list-two {
  width: 50%;
  margin: 0 auto;
}
.survey-list-two input{
  //width:45px;
}
.survey-list-two .mdl-list__item{
  padding:0;
  //min-height: 28px;
}

.qrcode-follow{
  text-align: center;
}
.survey-text-center{
  text-align:center;
}

.pagination-config ul{
  text-align: center;
}
.pagination li{
  display:inline-block;
  padding-right:1.0rem;
}

.mdl-list__item .mdl-list__item-secondary-content{
  display:inline-block !important;
}
.survey-title div{
  text-align: center;
  font-size: 16px;
  margin:10px auto;
  width:90%;
}

.title-content{
  float:left;
  width:90%;
}
.survey-question{
  margin:0 auto;
  width:90%;
}
.question-option {
  clear:both;
  margin-left:25px;
  padding-top:5px;
}
.submit-button{
  text-align: center;
}
.survey-submit{
  width: 85px;
  text-align: center;
  margin: 20px auto;
  line-height: 35px;
}

.survey-step {
  text-align: center;
  margin-top:20px;
}
.survey-step span{
  width:85px;
}
.step-prev, .step-next{
   display: inline-block;
}
.step-prev, .step-next, .survey-submit{
  cursor : pointer;
  border-radius: 2px;
  box-shadow: -1px 1px 5px #888888;
  text-align: center;
  line-height: 35px;
  display:inline-block;
  margin-right:10px;
}
.question-option textarea{
  width:250px;
  height:100px;
}
.none {
  display: none;
}
.message-tip{
  margin:20px 0 10px 25px;
}
.background-margin-auto{
  margin:auto;
  margin-top:10px;
}
.mdl-color--segmentation{
  background: #757374!important;
}

.mdl-color--survey{
  background: #ABABAB!important;
}
.survey-month-title div{
  text-align: center;
  width:90%;
  background: #ABABAB;
  margin: 0 auto;
  font-size: 20px;
  color:white;
  padding: 10px 0;
  font-weight: bold;
  letter-spacing: 4px;
}
.option-other{
  clear:both;
  display: block;
  margin-top: 8px;
}
.title-number{
  width:25px;
  float:left;
}
.option-select, .option-select-content{
  display:inline-block;
  margin-top:10px;
}
.option-line{
  display: block;
  margin-right: 8px;
  margin-left: -5px;
}
.option-select{
  width:20px;
  float:left;
  padding-right:5px;
}
.option-select-content{
  width:90%;
}
//hidden signal survey 
.hidden-survey{
  display: none;
}
//history page
.my-points .receipt{
	// padding-bottom: 100px;
  background-color: #f4f4f4;
  .summary{
    margin: 0 25px !important;
    .mdl-button{
      padding:10px 0;
      margin-top:10px;
    }
  }
}

//receipts page

.my-receipts{
  padding-top: 60px;
  background-color: white !important;
  padding-bottom: 0px !important; 

  .mdl-list:nth-child(1){
    margin:0px 20px 5px 20px;
    border-top: 0px solid !important;
  }
  .mdl-list{
    margin:0px 20px 5px 20px;
    border-top: 3px solid;
    .mdl-list__item{
      padding:5px 0px;
      min-height: 10px;
    }
  }
}

//user coupon page font weight and color

// .coupons-available{
//   .mdl-grid{
//     .mdl-typography--body-1{
//       font-weight: bold;
//       color:white;
//     }
//   }
// }
// .mdl-grid{
//     .mdl-typography--body-1{
//       font-weight: bold;
//     }
//   }

  .finish-question{
    .title-content{
      text-align: center;
      padding-left:20px;
    }
  }
@media screen and (max-width: 319px) {
  .title-number{
    width:5%;
    float:left;
  }
  .option-select{
    width:10%;
    padding-right:0;
  }
}
@media screen and (max-width: 479px) {

}

/******* 
*************************************
*************************************
******* CSS FIX BY JEAN ZHANG *******
*************************************
**************************************

remove 
height: 50px;
padding: 0;
on .mdl-textfield
*********/



